#include<bits/stdc++.h>
using namespace std;

int month[]={0,31,28,31,30,31,30,31,31,30,31,30,31};


int yearday(int y)
{
	if(y%4==0 && y%100!=0 || y%400==0)
		return 366;
	return 365;
}
int main()
{
	int day=0,min=0;
	for(int i=1922;i<=2020;i++)
	{
		day+=yearday(i);
	}
	day-=22;
	min=day*24*60;
	cout<<min;
 } 
